package com.auemall.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.auemall.bean.QueryResult;
import com.auemall.dao.ProductBrandMapper;
import com.auemall.po.ProductBrand;
import com.auemall.service.ProductBrandService;

@Service
public class ProductBrandServiceImpl implements ProductBrandService {
	
	@Autowired
	private ProductBrandMapper productBrandMapper;
	
	public List<ProductBrand> findProductBrandAll(){
		
		return productBrandMapper.findProductBrandAll();
	}
	
	public ProductBrand selectByPrimaryKey(Integer id) {
		
		return productBrandMapper.selectByPrimaryKey(id);
	}
	
	public List<ProductBrand> findHomeProductBrand(Integer id){
		
		return this.productBrandMapper.findHomeProductBrand(id);
	}

	
	public QueryResult<ProductBrand> getScrollData(int firstindex, int maxresult) {
		
		QueryResult qr = new QueryResult<ProductBrand>();
		
		
		
		return null;
	}

}
